package com.example.config;

/**
 * @program: xi-an
 * @description:
 * @author:fanzhihui
 * @create: 2023-03-20 11:29
 **/
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.ScheduledThreadPoolExecutor;

@Configuration
public class SchedulingConfiguration {
    @Bean
    public ScheduledThreadPoolExecutor scheduledExecutorService() {
        ScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(50);
        return executor;
    }
}
